<template>
	<view class="h-fill content">
		<u-navbar title="教程中心" :background="navBg" :borderBottom="false" titleColor="#fff" backIconColor="#fff"></u-navbar>
		<view class="pad">
			<jyf-parser :html="guidance"></jyf-parser>
		</view>
	</view>
</template>

<script>
	import {getSystemConfig} from "../../api/platform/user.js"
	export default {
		data() {
			return {
				navBg: {
					'background-image': 'linear-gradient(to right, #434AD8, #8E77F5)'
				},
				guidance: ''
			};
		},
		onReady() {
			this.loadData();
		},
		methods: {
			async loadData() {
				try{
					let config = await getSystemConfig('guidance');
					this.guidance = config.guidance;
				}catch(e){
					console.error("获取新手引导遇到错误", e);
				}
			}
		}
	}
</script>

<style lang="less">
	
</style>
